<h3><?php echo $this->title?></h3>
<?php foreach ($this->categories as $category): ?>
<div class="column span-2">
	<h3>
	<a class="<?php if($category->id == $this->category_id) :?>highlight<?php endif; ?>" 
	href="<?php echo $this->baseUrl;?>/<?php echo $this->pageInfo->getModuleUrl();?>blog/list/c_id/<?php echo $category->id; ?>" >
	<?php echo $category->name; ?>
	</a>
	</h3>
</div>
<?php endforeach; ?>
<hr/>
<?php if(!empty($this->data)): ?>	
	<?php foreach ($this->data as $blog) :?>	
		<div id="blog_level_<?php echo $blog->id ?>" class="span-2 column" style="cursor:hand;border:1px dotted <?php echo '#'.$blog->getTextColor()?>;text-align:center">
			<span style="cursor:hand;">
				<?php echo $blog->create_at ?> 
			</span>
			<br/>
			<br/>
			<?php $remarks_count = $blog->remarks_count ;?>
			<?php if(!empty($remarks_count)):?>
				<span class="highlight" style="font-size:1.5em;"><?php echo $blog->remarks_count ?></span>
			<?php else:?>
			<?php endif;?>	
			<br/>
			<br/>		
		</div>
		<div class="span-17 column last">
			<p><?php echo $blog->title ?></p>			
			<p class="incr"><?php echo nl2br($blog->abstract_context) ?></p>	
		</div>
		<div class="span-20 column last" style="text-align: right">
			<em >
				<a href="<?php echo $this->baseUrl?>/admin/blog/edit/page/<?php echo $this->pageInfo->getPage() ?>/id/<?php echo $blog->id?>#draggable_intro">Edit</a>
				<a href="<?php echo $this->baseUrl?>/admin/blog/delete/id/<?php echo $blog->id?>#draggable_intro">Delete</a>
			</em>
		</div>		
		<hr/>
	<?php endforeach; ?>		
	<div class='pagination' ><?php echo $this->html;?></div>
<?php endif; ?>	
<script type="text/javascript">		
$(document).ready(function() {	
	$("#mainbody a").toAjaxLink();	
	<?php foreach ($this->data as $blog) :?>
	$("#blog_level_<?php echo $blog->id ?>").click(function(){
		$.ajaxRequest("draggable_intro","<?php echo $this->baseUrl?>/admin/blog/set/id/<?php echo $blog->id ?>");
	});		
	<?php endforeach; ?>	
});
</script>